import 'package:flutter/material.dart';

class CommonTabIcon extends StatefulWidget {
  final String normalIcon;
  final String activeIcon;
  final bool isActive;
  final double size;

  const CommonTabIcon({
    super.key,
    required this.normalIcon,
    required this.activeIcon,
    required this.isActive,
    this.size = 24,
  });

  @override
  CommonTabIconState createState() => CommonTabIconState();
}

class CommonTabIconState extends State<CommonTabIcon> {
  @override
  Widget build(BuildContext context) {
    return Image.asset(
      widget.isActive ? widget.activeIcon : widget.normalIcon,
      width: widget.size,
      height: widget.size,
    );
  }
}
